package com.fwtai.web;

import com.fwtai.bean.PageFormData;
import com.fwtai.datasource.DaoHandle;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * 特殊区域代理
 * @作者 田应平
 * @版本 v1.0
 * @创建时间 2023-08-29 11:28:52
 * @QQ号码 444141300
 * @Email service@fwtai.com
 * @官网 <url>http://www.fwtai.com</url>
*/
@Repository
public class SpecialAreaDao{

  private final DaoHandle dao;

  public SpecialAreaDao(final DaoHandle dao){
    this.dao = dao;
  }

  public HashMap<String,Object> getAreaProxyType(final long loginId){
    return dao.queryForHashMap("special_area.getSpecialType",loginId);
  }

  public List<HashMap<String,Object>> listAreaProxy(final PageFormData formData){
    return dao.queryForListHashMap("special_area.listAreaProxy",formData);
  }

  public List<HashMap<String,Object>> getAllAreaProxy(){
    return dao.queryForListHashMap("special_area.getAllAreaProxy");
  }

  public List<HashMap<String,Object>> listAreaShop(final long userId){
    return dao.queryForListHashMap("special_area.listAreaShop",userId);
  }
}